package com.hedl.studyandjava8.java8_2unit.java8_25.service.impl;

import com.hedl.studyandjava8.java8_2unit.java8_25.entity.Apple;
import com.hedl.studyandjava8.java8_2unit.java8_25.entity.Color;
import com.hedl.studyandjava8.java8_2unit.java8_25.service.ApplePredicate;

/**
 * @author Big Watermelon
 * @description
 * @date 2024/02/19/16:57
 */
public class AppleGreenColorPredicateImpl implements ApplePredicate {
    @Override
    public boolean test(Apple apple) {
        return apple.getColor().equals(Color.GREEN);
    }
}
